# Eureka core
include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
set(eureka_SRCS main.cpp mainwindow.cpp page.cpp urlaction.cpp)
if (NEPOMUK_FOUND)
    set(eureka_SRCS ${eureka_SRCS} tagdialog.cpp)
endif (NEPOMUK_FOUND)
kde4_add_executable(eureka ${eureka_SRCS})
target_link_libraries(eureka ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KROSSUI_LIBS} ${KDE4_SOLID_LIBS} ${KDE4_KUTILS_LIBS})

# Nepomuk support
if (NEPOMUK_FOUND)
    target_link_libraries(eureka ${NEPOMUK_LIBRARIES} ${SOPRANO_LIBRARIES})
    include_directories( ${SOPRANO_INCLUDE_DIR} ${NEPOMUK_INCLUDE_DIR} )
    set(eureka_SRCS tagdialog.cpp)
endif (NEPOMUK_FOUND)

# Installation
install(TARGETS eureka DESTINATION ${BIN_INSTALL_DIR})

